﻿namespace ud_SwirlingQuestion
{
    static public class Utils
    {
        public static string FormatBlogTitleUrl(string siteRoot, string itemUrl, string itemId, int pageId, int moduleId)
        {
            if (itemUrl.Length > 0)
                return siteRoot + itemUrl.Replace("~", string.Empty);
            return siteRoot + "/SwirlingQuestion/ViewAnswer.aspx?pageid=" + pageId
                + "&item=" + itemId
                + "&mid=" + moduleId;
        }
    }
}